package com.club.football.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.club.football.dto.PageDto;
import com.club.football.dto.PlayerSaveDto;
import com.club.football.entity.Player;
import com.club.football.req.PlayerPageReq;
import com.club.football.utils.R;
import com.club.football.vo.PlayerPageVo;


/**
 * 球员服务
 *
 * @author 1
 * @date 2024/01/09
 */
public interface PlayerService extends IService<Player> {
    /**
     * 球员保存
     *
     * @param saveDto 将数据保存到
     * @return {@link R}<{@link String}>
     */
    R<String> playerSave(PlayerSaveDto saveDto);

    /**
     * 播放器页面
     *
     * @param pageDto       页数到页
     * @param playerPageReq 播放器页面请求
     * @return {@link R}<{@link PageDto}<{@link Player}>>
     */
    R<Page<PlayerPageVo>> playerPage(PageDto<Player> pageDto, PlayerPageReq playerPageReq);
}
